package com.hbnu.service.impl;

import com.hbnu.dao.GoodsDao;
import com.hbnu.pojo.Goods;
import com.hbnu.service.GoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class GoodsServiceImpl implements GoodsService {
    //    注入Dao层对象
//    @Autowired 两个注解随便哪个都行
    @Resource
    private GoodsDao goodsDao;
    public List<Goods> findAllGoods() {
        return goodsDao.findAllGoods();
    }
}
